
#include"list.h"
using namespace std;
int main()
{
	//list<int> ls;
	//ls.push_back(1);
	//ls.push_back(2);
	//wzh::list<int> ls;
	//ls.push_back(1);
	//ls.push_back(2);
	//ls.push_back(3);
	//wzh::list<int>::iterator it = ls.begin();
	//it.operator++();
	//for (auto a : ls)
	//{
	//	std::cout << *it;
	//}
	 
	//wzh::list<int> ls(5,1);
	//wzh::list<int>::iterator it = ls.begin();
	//while (it != ls.end())
	//{
	//	std::cout << *it << " ";
	//	it++;
	//}
	//std::cout << std::endl;
	
	wzh::list<int> ls1;
	ls1.insert(ls1.end(), 1);
	ls1.insert(ls1.end(), 2);
	ls1.insert(ls1.end(), 3);
	ls1.insert(ls1.end(), 4);
	//ls1.back();
	//int a = ls1.back();
	//cout << a;
	wzh::list<int> ls2(6, 6);
	ls2.swap(ls1);
	//ls1.erase(ls1.begin());
	//ls1.clear();
	//for (auto a : ls1)
	//{
	//	cout << a << " ";
	//}



	return 0;
}
